#include <QtGui/QApplication>
#include "mainwindow.h"
#include "keyboard.h"
#include "messagebox.h"

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
	MainWindow w;
	Game g;
	Keyboard k(&g);
	MessageBox mb;
	w.addWidget(&mb,20);
	w.addWidget(&k,80);
	k.show();
	w.show();

	a.connect( &k, SIGNAL(keyboardUpdated(Keyboard*)),
			   &g, SLOT(checkStatus(Keyboard*)) );

    return a.exec();
}
